<?php 	
	$Conf = "db/driver.mysql.conf.php";
	if (file_exists($Conf)) {
		foreach(file($Conf) as $l) {
			if ($l{0} == '#') continue;
			if (substr($l, 0, 15) == '<?php die(); ?>') continue;
		
			list($k, $v) = explode(';;', $l); 
			$DB[$k] = trim($v);
		}
		
		unset($l, $k, $v, $Conf);
		$dbh = mysql_connect($DB['mysql_host'], $DB['mysql_user'], $DB['mysql_pass']);
		mysql_select_db($DB['mysql_database'], $dbh);		
		//die($DB['mysql_host']." - ".$DB['mysql_user']." - ".$DB['mysql_pass']);
	}else{
		echo $Conf;
	}
?>